home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
powervww
/
pvcolors.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-05
|
2KB
|
42 lines
// ____________________________________________________
// | |
// | Project: POWER VIEW INTERFACE |
// | File: PVCOLORS.CPP |
// | Compiler: WPP386 (10.6) |
// | |
// | Subject: Colors management |
// | |
// | Author: Emil Dotchevski |
// |____________________________________________________|
//
// E-mail: zajo@geocities.com
// URL: http://www.geocities.com/SiliconValley/Bay/3577
#define uses_string
#define uses_colors
#define uses_system
#define DECLARE_PVCOLORS
#include "PVuses.h"
#undef DECLARE_PVCOLORS
void __init_colors( void )
{
if( scr_bw )
{
memcpy( &pal_desktop, &bw_desktop, sizeof( pal_desktop ) );
memcpy( &pal_menus, &bw_menus, sizeof( pal_menus ) );
memcpy( &pal_windows, &bw_windows, sizeof( pal_windows ) );
memcpy( &pal_buttons, &bw_buttons, sizeof( pal_buttons ) );
memcpy( &pal_drag_drop, &bw_drag_drop, sizeof( pal_drag_drop ) );
}
else
{
memcpy( &pal_desktop, &color_desktop, sizeof( pal_desktop ) );
memcpy( &pal_menus, &color_menus, sizeof( pal_menus ) );
memcpy( &pal_windows, &color_windows, sizeof( pal_windows ) );
memcpy( &pal_buttons, &color_buttons, sizeof( pal_buttons ) );
memcpy( &pal_drag_drop, &color_drag_drop, sizeof( pal_drag_drop ) );
}
}